﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminThongTinDoanhNghiep.aspx.cs" Inherits="LayoutTemplate.WebForm16" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
    .newStyle1 {
	width: 150px;
	height: 407px;
	float: left;
}
.newStyle2 {
	width: 300px;
	height: 70px;
	float: left;
}
.newStyle3 {
	width: 100px;
	height: 70px;
	float: left;
}
.newStyle4 {
	float: right;
	width: 400px;
	height: 409px;
}
</style>
	<div style="width: 750px; float: left;">
	<div style="float:left; width:200px">
        </div>
<%  
    
    
   
    int id = int.Parse(Request.QueryString["id"]);
    DAO_DTO_WS.DTO.DoanhNghiepDTO doanhnghiep = new DAO_DTO_WS.DTO.DoanhNghiepDTO();
    doanhnghiep = DAO_DTO_WS.DAO.DoanhNghiepDAO.LayDNTheoMa(id);
        DAO_DTO_WS.DTO.ThanhVienDTO thanhvien = new DAO_DTO_WS.DTO.ThanhVienDTO();
        thanhvien = DAO_DTO_WS.DAO.ThanhVienDAO.LayThanhVien(doanhnghiep.TenDangNhap);
        
        lbTenDoanhNghiep.Text = doanhnghiep.TenDoanhNghiep;
        lbDiaChi.Text = doanhnghiep.DiaChi;
        lbDienThoai.Text = doanhnghiep.DienThoai;
        lbWebsite.Text = doanhnghiep.WebSite;
        lbmk.Text = doanhnghiep.MatKhau;

        tbDiaChi.Text = "";
        tbDienThoai.Text = "";
        tbTenDoanhNghiep.Text = "";
        tbWebsite.Text = "";
        tbmk.Text = "";
        int tinhtrang = doanhnghiep.TinhTrang;
 %>
		<div class="newStyle1">
			<div>
				<asp:Label runat="server" Text="Tên doanh nghiệp" id="Label1" 
                    CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Địa chỉ" id="Label3" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Điện thoại" id="Label4" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Website" id="Label5" CssClass="newStyle3"></asp:Label></div>
			<div>
				<asp:Label runat="server" Text="Mật khẩu" id="Label6" CssClass="newStyle3"></asp:Label></div>
			<div>
				</div>
		</div>
		<div class="newStyle4">
			<div class="newStyle2">
			<asp:TextBox runat="server" id="tbTenDoanhNghiep"></asp:TextBox>
				<div><asp:Label id="lbTenDoanhNghiep" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
				<asp:TextBox runat="server" id="tbDiaChi"></asp:TextBox>
				<div><asp:Label id="lbDiaChi" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
			    <asp:TextBox runat="server" id="tbDienThoai"></asp:TextBox>
				<div><asp:Label id="lbDienThoai" runat="server" ></asp:Label></div>
			</div>
			
			<div class="newStyle2">
				<asp:TextBox runat="server" id="tbWebsite" 
                   ></asp:TextBox>
				<div><asp:Label id="lbWebsite" runat="server" ></asp:Label></div>
			</div>
			<div class="newStyle2">
				<asp:TextBox runat="server" id="tbmk"></asp:TextBox>
				<div><asp:Label id="lbmk" runat="server" ></asp:Label></div>
			</div>
		</div>
		<div>
			<div style="float:left;width:35%"><div style="float:right"><asp:Button id="btnCapNhat" runat="server" 
                    Text="Cap nhat" onclick="btnCapNhat_Click" /></div></div>
                    <%if (tinhtrang == 1)
                      { %>
            <div style="float:left;width:35%"><div style="float:right"><asp:Button id="Button1" runat="server" 
                      Text="Block" onclick="btnBlock_Click" /></div></div>
                        <%}
                      else
                      {%>
            <div style="float:left;width:35%"><div style="float:right"><asp:Button id="Button2" runat="server" 
                      Text="UnBlock" onclick="btnBlock_Click" /></div></div>
                      <%} %>
                    </div>
	</div>
</asp:Content>
